package com.abc.cloud.service;

import com.abc.cloud.dto.im.ChatResp;
import com.abc.cloud.vo.im.AdminUpdateChatReq;
import com.baomidou.mybatisplus.extension.service.IService;
import com.abc.cloud.common.utils.PageUtil;
import com.abc.cloud.entity.ChatEntity;

import java.util.List;
import java.util.Map;

/**
 * 聊天表
 *
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-11-29 13:17:40
 */
public interface ChatService extends IService<ChatEntity> {

    PageUtil queryPage(Map<String, Object> params);

    List<ChatResp> listByUserId(Long userId);

    void updateLastMessage(Long chatId, String content);

    void saveOneChat(Long userId, Long userId1);

    PageUtil adminChatList(Map<String, Object> params);

    void adminUpdateChat(AdminUpdateChatReq adminUpdateChatReq);

    void adminDeleteChat(List<Long> ids, Integer status);
}

